package com.fly.system.mapper;

import com.fly.common.mapper.BaseMapper;
import com.fly.common.model.ZtreeModel;
import com.fly.system.model.SysMenuModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuModel>{


    /* *
     *@author Fuly
     *
     * 日期：2020/6/13 13:44
     *
     * 描述：通过userId获取对应menu实体
     *
     */
    List<SysMenuModel> selectMenuListByUserId(@Param("userId") Long userId);
    
    /* * 
     *@author Fuly
     * 
     * 日期：2020/7/5 16:37
     * 
     * 描述：
     *
     */
    List<SysMenuModel> selectAdminMenu();

    List<ZtreeModel> selectMenuTree();
}
